import { login } from './Login.js'
import { getMenus } from './Home.js'
import {
  getUsers,
  updateUserState,
  addSave,
  editSave,
  deleteUser
} from './Users.js'

import { getRights } from './Rights.js'
import {
  getRoles,
  deleteRolesRightsById,
  deleteRolesById,
  addRole,
  editRoleByID,
  setRoleRights,
  setUserRole
} from './Roles'

import {
  getCateList,
  addCateList,
  editCateById,
  deleteCateById
} from './GoodsCates.js'

import {
  getParamsList,
  addParam,
  editParamsById,
  deleteParamsById
} from './GoodsParams.js'

export const loginAPI = login
export const getMenusAPI = getMenus

export const getUsersAPI = getUsers
export const updateUserStateAPI = updateUserState
export const addSaveAPI = addSave
export const editSaveAPI = editSave
export const deleteUserAPI = deleteUser
export const getRightsAPI = getRights
export const getRolesAPI = getRoles
export const deleteRolesRightsByIdAPI = deleteRolesRightsById
export const deleteRolesByIdAPI = deleteRolesById
export const addRolesAPI = addRole
export const editRoleByIDAPI = editRoleByID
export const setRoleRightsAPI = setRoleRights
export const getCateListAPI = getCateList
export const addCateListAPI = addCateList
export const setUserRoleAPI = setUserRole
export const editCateByIdAPI = editCateById
export const deleteCateByIdAPI = deleteCateById
export const getParamsListAPI = getParamsList
export const addParamAPI = addParam
export const editParamsByIdAPI = editParamsById
export const deleteParamsByIdAPI = deleteParamsById
